This option allows you to define the set of files that will be loaded together and considered as a work unit. For this you have to define:
The name of the project
The directory where the source files will be found
The object files and the executable are placed by default in a directory named 'lcc' under the sources directory. For instance. if you use the directory c:\myproject for the sources, the output of the compiler will be placed in a directory named 'c:\myproject\lcc'. This method is not obligatory in this version, but it was in earlier versions of Wedit. Still, it is better (as always) to use the defaults.[1]
Avoid placing two completely unrelated projects in the same
directory. The makefiles would be erased and several object files could be
lost. For example, if you have a file called main.c in two projects, the object
files of both projects would be the same and the linker would be confused.
Four types of projects are supported:
Windows executable. This means that your program will start at the ‘WinMain’ function, that it will not use the standard input or standard output functions and that it will not use the ‘console’ window.[2]
Console application. This means that your program uses ‘printf’ and assumes, for example, that stdin and stdout are initialized and it will appear in a text mode window.[3]
Static library. This means that you want to create a library containing a set of object files. This library is linked statically, i.e., each executable will contain its own copy of the routines in the library.
Dynamic link library. This means that you will create an executable that is dynamically attached to another process when the other executable starts.
[1] The current directory can be determined
easily: just go to the configuration menu option. In the ‘General’ tab, you
will find what the current directory is.
[2] Of course windows program can open an own console if they wish to. This refers to what is present by default at the program startup.
[3] Again, console programs can use any window API. The system opens a console for them by default at the program startup, that’s all.